package com.scala.zhenghui

import java.io
import java.io.IOException

/**
 * Created by Administrator on 2018/1/21/021.
 */
object ExceptionDemo {
  def main(args: Array[String]) {
    try {
    throw  new IOException("Io Exception")
    }catch {
      case e1: io.IOException =>  print("sorry,error!!!")

    }
  }
}
